<?php
  include "counter2.php";

  requirelogin();

pagestart();
pagehead(_("Machine registration"));
print "<body>\n";
pagetop(_("Machine registration"));

iamashowpage();
showmessage();

print "<FORM METHOD=POST action=\"/perl/machine-validate.pl\">\n";

print "<HR>\n" .
"<h2>" . _("Information about the machine") . "</h2>\n" .
"<P>\n" . 
"<table border=\"2\" cellpadding=\"5\">\n" .
"<tr><td>\n" .
"<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Name") . ":</B>\n" .
"<td> <inPUT NAME=\"name\" SIZE=40 MAXLENGTH=256>\n";

print "<TD>" . _("DNS name of machine if it has one. Otherwise, what you call it.") . 
"\n<BR>\n" .
"<TR><TD>\n";
print "<iMG SRC=\"/gifs/yellowdot.gif\"><B>" . _("Country") . ":</b><td>\n" .
"<input NAME=\"country\" SIZE=2 MAXLENGTH=2>\n" .
"<TD>" . _("ISO 3166 two-letter country code") . "<br>\n" .
"<a href=\"field-guide.php#country\">" . _("More info") . "</a><br>\n" .
"<a href=\"http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html\">" . 
_("Complete list") . "</a>\n" .
"<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/yellowdot.gif\"><B>" . _("Purpose") . ":</b><td>\n" .
"<table>\n" .
"<tr>\n" .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Workstation\">" . _("Workstation") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"WWW server\">" . _("WWW server") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"FTP server\">" . _("FTP server") .
"\n<tr>\n" .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Mail server\">" . _("Mail server") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"DNS server\">" . _("DNS server") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"File server\">" . _("File server") .
"\n<tr>\n" .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Database server\">" . _("Database server") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"Router\">" . _("Router") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"Firewall\">" . _("Firewall") .
"\n<tr>\n" .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Toy\">" . _("Toy") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"Learning\">" . _("Learning") .
"\n<td><input name=\"purpose\" type=\"checkbox\" value=\"Programming\">" . _("Programming") .
"\n<tr>\n" .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Game server\">" . _("Game server") .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Media center\">" . _("Media center") .
"<td><input name=\"purpose\" type=\"checkbox\" value=\"Other server\">" . _("Other server") .
"\n<tr>\n" .
"<td colspan=3><input NAME=\"purpose\" SIZE=55 MAXLENGTH=40>" .
"\n</table>\n" .
"<td>" . _("What you use this machine for. Mark one or more, or write your own description.") . "<br>\n";

print "<tr><td>\n" .
"<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("System class") . ":</b><td>\n" .
"<select name=\"sysclass\">" .
"\n<option value=\"\">" . _("-- Not specified --") .
"\n<option value=\"handheld\">" . _("Handheld") .
"\n<option value=\"laptop\">" . _("Laptop") .
"\n<option value=\"workstation\">" . _("Workstation") .
"\n<option value=\"server\">" . _("Server") .
"\n<option value=\"embedded\">" . _("Embedded system") .
"\n<option value=\"other\">" . _("None of the above") .
"\n</select>" .
"\n<input name=\"sysclass\" size=30 maxlength=40>" .
"\n<td>" . _("Type of box. Give details if needed.");

print "\n<tr><td>\n" .
"<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("CPU") . ":</b><td>\n" .
"<table>\n" .
"<tr><td>#" . _("CPUs") . "<td>" . _("Type") . "<td>MHz" .
"\n<tr><td>" .
"\n<select name=\"cpu-count\">" .
"\n<option value=\"\" selected>" . _("Single") .
"\n<option value=\"2x\">" . _("Dual") .
"\n<option value=\"3x\">" . _("Triple") .
"\n<option value=\"4x\">" . _("Quad") .
"\n<option value=\"8x\">" . _("Eight") .
"\n<option value=\"16x\">" . _("Sixteen") .
"\n<option value=\"Other\">" . _("Other") .
"\n</select>" .
"\n<td>" .
"\n<select name=\"cpu-type\">" .
"\n<option value=\"Intel 386SX\">Intel 386SX" .
"\n<option value=\"Intel 386\">Intel 386" .
"\n<option value=\"Intel 486\">Intel 486" .
"\n<option value=\"Intel Pentium\">Intel Pentium" .
"\n<option value=\"Intel Pentium II\">Intel Pentium II" .
"\n<option value=\"Intel Pentium III\">Intel Pentium III" .
"\n<option value=\"Intel Pentium III Xeon\">Intel Pentium III Xeon" .
"\n<option value=\"Intel Pentium 4\" selected>Intel Pentium 4" .
"\n<option value=\"Intel Pentium M\">Intel Pentium M" .
"\n<option value=\"Intel Pentium D\">Intel Pentium D" .
"\n<option value=\"Intel PPro\">Intel Pentium Pro" .
"\n<option value=\"Intel Celeron\">Intel Celeron" .
"\n<option value=\"Intel Celeron M\">Intel Celeron M" .
"\n<option value=\"Intel Xeon\">Intel Xeon" .
"\n<option value=\"Intel Itanium\">Intel Itanium" .
"\n<option value=\"Intel Itanium 2\">Intel Itanium 2" .
"\n<option value=\"Intel Core Solo\">Intel Core Solo" .
"\n<option value=\"Intel Core Duo\">Intel Core Duo" .
"\n<option value=\"Intel Core 2 Duo\">Intel Core 2 Duo" .
"\n<option value=\"Intel Core 2 Extreme\">Intel Core 2 Extreme" .
"\n<option value=\"AMD 5x86\">AMD 5x86" .
"\n<option value=\"AMD K5\">AMD K5" .
"\n<option value=\"AMD K6\">AMD K6" .
"\n<option value=\"AMD Duron\">AMD Duron" .
"\n<option value=\"AMD Athlon\">AMD Athlon" .
"\n<option value=\"AMD Athlon 64\">AMD Athlon 64" .
"\n<option value=\"AMD Opteron\">AMD Opteron" .
"\n<option value=\"AMD Sempron\">AMD Sempron" .
"\n<option value=\"AMD Turion 64\">AMD Turion 64" .
"\n<option value=\"Cyrix 486SLC\">Cyrix 486SLC" .
"\n<option value=\"Cyrix 486DLC\">Cyrix 486DLC" .
"\n<option value=\"Cyrix 5x86\">Cyrix 5x86" .
"\n<option value=\"Cyrix 6x86\">Cyrix 6x86" .
"\n<option value=\"Digital Alpha\">Digital Alpha" .
"\n<option value=\"Sun Sparc\">Sun Sparc" .
"\n<option value=\"Motorola 68xxx\">Motorola 68xxx" .
"\n<option value=\"Motorola PowerPC\">Motorola PowerPC" .
"\n<option value=\"SGI R4600\">SGI R4600" .
"\n<option value=\"Transmeta Crusoe\">Transmeta Crusoe" .
"\n<option value=\"VIA C3\">VIA C3" .
"\n<option value=\"VIA C7\">VIA C7" .
"\n<option value=\"VIA Luke\">VIA Luke" .
"\n<option value=\"VIA Eden-N\">VIA Eden-N" .
"\n<option value=\"VIA Eden ESP\">VIA Eden ESP" .
"\n<option value=\"VIA Ezra\">VIA Ezra" .
"\n<option value=\"HP PA-7000\">HP PA-7000" .
"\n<option value=\"HP PA-7100\">HP PA-7100" .
"\n<option value=\"HP PA-7150\">HP PA-7150" .
"\n<option value=\"HP PA-7200\">HP PA-7200" .
"\n<option value=\"HP PA-7100LC\">HP PA-7100LC" .
"\n<option value=\"HP PA-7300LC\">HP PA-7300LC" .
"\n<option value=\"HP PA-8000\">HP PA-8000" .
"\n<option value=\"HP PA-8200\">HP PA-8200" .
"\n<option value=\"HP PA-8500\">HP PA-8500" .
"\n<option value=\"HP PA-8600\">HP PA-8600" .
"\n<option value=\"HP PA-8700\">HP PA-8700" .
"\n<option value=\"HP PA-8800\">HP PA-8800" .
"\n<option value=\"HP PA-8900\">HP PA-8900" .
"\n<option value=\"Other\">" . _("Other") .
"\n</select>" .
"\n<td>" .
"\n<input name=\"cpu-speed\" size=4 maxlength=4 value=\"133\">" .
"\n</table>" .
"\n<inPUT NAME=\"cpu-comment\" SIZE=20 MAXLENGTH=20> " .
_("Specify here if \"other\"") .
"\n<TD>" . _("Select the values that match your machine.") . "<br>\n" .
_("Write any comments in the text box.") .
"\n<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Memory") . ":</b><td>\n <inPUT NAME=\"memory\" SIZE=6 MAXLENGTH=6> MBytes\n" .
"<TD>" . _("Number of MBytes of memory installed") . " - <br><b>" . _("number only") . "</b>\n" .
"<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Disk") . ":</b><td>\n <inPUT NAME=\"disk\" SIZE=4 MAXLENGTH=4> " .
"\n<select name=\"unit\">" .
"\n<option value=\"MB\">MBytes" .
"\n<option value=\"GB\" selected>GBytes" .
"\n<option value=\"TB\">TBytes" .
"\n</select>" .
"<TD>" . _("Amount of disk space installed") . " - <br><b>" . _("Enter number, select MBytes, GBytes or TBytes") . "</b><br>Numbers will be recalculated to MBytes for comparison reasons\n" .
"<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Network") . ":</b><td>" .
"\n<select name=\"network\">" .
"\n<option value=\"None\" selected>" . _("None") .
"\n<option value=\"Ethernet\">Ethernet" .
"\n<option value=\"PPP\">PPP " . _("dialup") .
"\n<option value=\"SLIP\">SLIP " . _("dialup") .
"\n<option value=\"AX.25\">AX.25 " . _("amateur radio") .
"\n<option value=\"ISDN\">ISDN" .
"\n<option value=\"Token Ring\">Token Ring" .
"\n<option value=\"UUCP\">UUCP" .
"\n<option value=\"Wireless 802.11\">" . _("Wireless 802.11a, 802.11b or 802.11g") .
"\n<option value=\"ATM\">ATM" .
"\n<option value=\"ADSL\">ADSL" .
"\n<option value=\"DSL\">DSL" .
"\n<option value=\"SDSL\">SDSL" .
"\n<option value=\"Other\">" . _("Other (give details below)") .
"\n</select>\n" .
_("Primary network") .
"\n<br>\n</br>";
print "\n<select name=\"network\">" .
"\n<option value=\"\" selected>" . _("None") .
"\n<option value=\"Ethernet\">Ethernet" .
"\n<option value=\"PPP\">PPP " . _("dialup") .
"\n<option value=\"SLIP\">SLIP " . _("dialup") .
"\n<option value=\"AX.25\">AX.25 " . _("amateur radio") .
"\n<option value=\"ISDN\">ISDN" .
"\n<option value=\"Token Ring\">Token Ring" .
"\n<option value=\"UUCP\">UUCP" .
"\n<option value=\"Wireless 802.11\">" . _("Wireless 802.11a, 802.11b or 802.11g") .
"\n<option value=\"ATM\">ATM" .
"\n<option value=\"ADSL\">ADSL" .
"\n<option value=\"DSL\">DSL" .
"\n<option value=\"SDSL\">SDSL" .
"\n<option value=\"Other\">" . _("Other (give details below)") .
"\n</select>\n" .
_("Secondary network (if any)") .
"\n<br>\n";
print "<inPUT NAME=\"network\" SIZE=20 MAXLENGTH=50> " . _("Specify here if \"other\"") .
"\n<TD>" . _("Type of network hardware") . "<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Distribution") . ":</b><td>" .
"\n<select name=\"distribution\">" .
"\n<option value=\"\">" . _("Unknown") .
"\n<option value=\"Red Hat\">Red Hat" .
"\n<option value=\"Fedora\">Fedora" .
"\n<option value=\"Mandrake\">Mandrake " . _("(before Mandriva)") .
"\n<option value=\"Mandriva\">Mandriva" .
"\n<option value=\"Debian\">Debian" .
"\n<option value=\"Slackware\">Slackware" .
"\n<option value=\"S.u.S.E\">S.u.S.E" .
"\n<option value=\"Linspire\">Linspire" .
"\n<option value=\"Gentoo\">Gentoo" .
"\n<option value=\"Ubuntu\">Ubuntu" .
"\n<option value=\"Knoppix\">Knoppix" .
"\n<option value=\"Conectiva\">Conectiva " . _("(before Mandriva)") .
"\n<option value=\"Caldera\">Caldera" .
"\n<option value=\"PLD\">PLD " .
"\n<option value=\"Smoothwall\">Smoothwall" .
"\n<option value=\"LinuxPPC\">LinuxPPC" .
"\n<option value=\"SLS\">SLS" .
"\n<option value=\"Yggdrasil\">Yggdrasil" .
"\n<option value=\"DLD\">DLD" .
"\n<option value=\"MCC\">MCC" .
"\n<option value=\"Mepis\">Mepis" .
"\n<option value=\"MkLinux\">MkLinux" .
"\n<option value=\"Stampede\">Stampede" .
"\n<option value=\"RockLinux\">RockLinux" .
"\n<option value=\"DIY\">" . _("Do-it-yourself") .
"\n<option value=\"LFS\">LFS - " . _("Linux From Scratch") .
"\n<option value=\"Lindows\">Lindows " . _("(before Linspire)") .
"\n<option value=\"ALT Linux\">ALT Linux" .
"\n<option value=\"Aurora\">Aurora SPARC Linux" .
"\n<option value=\"LFTAG\">LFTAG - " . _("Linux For The Average Guy") .
"\n<option value=\"\">" . _("Other") .
"\n</select>\n" .
_("Version") .
"\n<input name=\"distribution-version\" size=10 maxlength=10>\n" .
"<br>\n" .
"<inPUT NAME=\"distribution\" SIZE=20 MAXLENGTH=20> " . _("Specify here if \"other\"") .
"\n<TD>" . _("What distribution (install kit) you used") .
"\n<br>\n" .
"<tr><td>\n";

print "<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Source") . ":</b><td>" .
"\n<table>" .
"\n<tr><td>" . _("Medium") .
"\n<td>" .
"\n<select name=\"source-main\">" .
"\n<option value=\"\">" . _("Pick one") .
"\n<option value=\"CD\">CD" .
"\n<option value=\"DVD\">DVD" .
"\n<option value=\"FTP\">FTP" .
"\n<option value=\"BBS\">BBS" .
"\n<option value=\"BitTorrent\">BitTorrent" .
"\n<option value=\"Floppy\">Floppy" .
"\n<option value=\"Tape\">Tape" .
"\n<option value=\"NFS\">NFS" .
"\n<option value=\"Other\">" . _("Other") .
"\n</select>" .
"\n<tr><td>" . _("CD vendor or FTP site") . "<td>" .
"\n<inPUT NAME=\"source-detail\" SIZE=30 MAXLENGTH=50>" .
"\n</table>" .
"\n<TD>" . _("Where you fetched Linux for your last full install.") .
"\n<br>\n";

print "<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Mailer") . ":</b><td>" .
"\n<select name=\"mailer\">" .
"\n<option value=\"\">" . _("Pick one") .
"\n<option value=\"none\">" . _("No mailserver") .
"\n<option value=\"sendmail\">Sendmail" .
"\n<option value=\"smail\">Smail" .
"\n<option value=\"qmail\">Qmail" .
"\n<option value=\"exim\">Exim" .
"\n<option value=\"postfix\">Postfix" .
"\n<option value=\"\">" . _("Other - give details") .
"\n</select>" .
"\n<inPUT NAME=\"mailer\" SIZE=30 MAXLENGTH=40>" .
"\n<TD>" . _("Type of mail server installed on this system") .
"\n<br>\n";

print "<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Users") . ":</b><td>\n <inPUT NAME=\"users\" SIZE=5 MAXLENGTH=7>" .
"\n<TD>" . _("Number of persons who use this machine regularly") .
"\n<br>\n";

print "<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\"><B>" . _("Accounts") . ":</b><td>\n <inPUT NAME=\"accounts\" SIZE=5 MAXLENGTH=5>" .
"\n<TD>" . _("Number of accounts in /etc/passwd, not counting root and so on") .
"\n<BR>" .
"\n</table>" .
"\n<p>" .
"\n<div id=\"buttons\">" .
"\n<inPUT TYPE=\"submit\" VALUE=\"" . _("Send registration") . "!\">" .
"\n<inPUT TYPE=\"reset\" VALUE=\"" . _("Clear form") . "\">" .
"\n</div>" .
"\n</FORM>";

pagebottom("yes");
print "</body>\n" .
"</html>";
?>
